package com.swlz.servlet.admin;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;

import com.swlz.dto.OrderSearch;
import com.swlz.dto.UserSearch;
import com.swlz.service.MallOrderService;
import com.swlz.service.impl.MallOrderServiceImpl;
import com.swlz.servlet.HttpServletSupport;

@WebServlet("/admin/ordelist.let")
public class OrderListServlet extends HttpServletSupport{

	private MallOrderService mallorderservice= new MallOrderServiceImpl();
	public String execute(HttpServletRequest request, OrderSearch search) throws Exception {		
		request.setAttribute("roleList", mallorderservice.list());
		request.setAttribute("search", search);
		request.setAttribute("p", mallorderservice.pages(search));
		return "/admin/order";
	}
}
